package com.hyt.it.ogt.ksmonitor.statistics.rpc;

import com.hyt.core.exception.NestedBusinessException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class KwStatisticsClientHystrix implements KwStatisticsClient {

    @Override
    public String getMonitorStatisticsByType(String examId, Integer statisticsType) {
        log.error("#获取视频监考统计数据失败，进入熔断");
        throw new NestedBusinessException("获取视频监考统计数据失败");
    }

    @Override
    public String getRoomIdByCandidateId(String candidateId) {
        log.error("#根据考生ID获取虚拟考场ID失败，进入熔断");
        throw new NestedBusinessException("根据考生ID获取虚拟考场ID失败");
    }

    @Override
    public String findRoomIdsByCandidateIds(List<String> candidateIds) {
        log.error("#根据考生ID列表获取虚拟考场ID失败，进入熔断");
        throw new NestedBusinessException("根据考生ID列表获取虚拟考场ID失败");
    }
}
